package com.mt.roll.process.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @Author: liguanghao
 * @Date: 2021/1/16 12:07
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@ApiModel(value = "基板视图对象", description = "用于查询基板信息")
public class SubstrateVo {
    /**
     * 主键，自增
     */
    @ApiModelProperty(value = "主键", required = true, example = "1")
    @NotNull(message = "ID不能为空")
    private Long id;
    /**
     * 基板名称
     */
    @ApiModelProperty(value = "基板名称", example = "0")
    @NotNull(message = "名称不能为空")
    private String name;
    /**
     * 外部编码，用于对照外部系统的编码
     */
    @ApiModelProperty(value = "外部编码", example = "0")
    @NotNull(message = "外部编码不能为空")
    private String externalCode;
}
